program Project2;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  a, b, c, i, j: integer;
  flag0, flag1, flag2, flag3: boolean;
begin
  readln(a);
  readln(b);
  readln(c);
  flag0:=false;
  flag1:=false;
  flag2:=false;
  flag3:=false;
  if (a=b) then
    flag1:=true;
  if (a=c) then
    flag2:=true;
  if (b=c) then
    flag3:=true;
  writeln('Here you are');
  if (a<=b) and (a<=c) then
  begin
    for i:=1 to a do
    begin
      if (a mod i = 0) then
        if (b mod i = 0) and (c mod i=0) then
        begin
          writeln(i);
          flag0:=true;
        end;
    end;
    if (flag0=False) then
      Writeln(1);
  end;
  flag0:=false;
  if (b<=a) and (b<=c) then
  begin
    if (flag1=False) then
      for i:=1 to b do
      begin
        if (b mod i = 0) then
          if (a mod i = 0) and (c mod i=0) then
          begin
            writeln(i);
            flag0:=true;
          end;
        if (flag0=False) then
          Writeln(1);
      end;
  end;
  flag0:=false;
  if (c<=a) and (c<=b) then
  begin
    if (flag2=false) and (flag3=false) then
      for i:=1 to c do
      begin
        if (c mod i = 0) then
          if (b mod i = 0) and (a mod i=0) then
          begin
            writeln(i);
            flag0:=true;
          end;
          if (flag0=False) then
            Writeln(1);
      end;
  end;
  readln;
end.
